package com.exposit.smarthouse.test;

import com.exposit.smarthouse.control.*;
import com.exposit.smarthouse.control.impl.*;
import com.exposit.smarthouse.system.*;
import com.exposit.smarthouse.system.impl.*;

public class Main
{
    public static void main(String args[])
    {
        MeteoControlSystem meteoControlSystem = new MeteoControlSystemImpl();
        GardenControlSystem gardenControlSystem = new GardenControlSystemImpl();
        SmokeControlSystem smokeControlSystem = new SmokeControlSystemImpl();
        NoiseControlSystem noiseControlSystem = new NoiseControlSystemImpl();

        ControlPanel controlPanel = new ControlPanelImpl();

        controlPanel.addControlSystem(meteoControlSystem);
        controlPanel.addControlSystem(gardenControlSystem);
        controlPanel.addControlSystem(smokeControlSystem);
        controlPanel.addControlSystem(noiseControlSystem);

        meteoControlSystem.start();
        gardenControlSystem.start();
        smokeControlSystem.start();
        noiseControlSystem.start();

    }
}
